//
//  UserDetailRequest.m
//  DYLYJ
//
//  Created by JM on 15/12/10.
//  Copyright © 2015年 JM. All rights reserved.
//

#import "UserDetailRequest.h"

@implementation UserDetailRequest
- (void)didRealRequest {
    [[XPGWifiSDK sharedInstance] getUserInfo:self.DY_token];
}

- (void)wifiSDK:(XPGWifiSDK *)wifiSDK didGetUserInfo:(NSError *)result userInfo:(XPGUserInfo*) userInfo;{
    if(result.localizedDescription.length == 0) {
        UserDetailResponse* response = [UserDetailResponse response];
        response.DY_userInfo = userInfo;
        self.block(response,nil);
        
    }
    else
    {
        self.block(nil,result);
    }
    [super superHandelResponse];
}

@end

@implementation UserDetailResponse


@end